<style>
h1{
    margin-left:23px;
}
</style>
<div class="catalogy_c">
<?php
if(!empty($category)){
    echo '<h1>'.$category->title.'</h1>';
    if(!empty($article)){
        echo '<ul>';
        foreach ($article as $article){
            echo '<li><a href="'.base_url().$category->alias.'/'.$article->alias.'.html">'.$article->title.'</a></li>';
        }
        echo '</ul>';
    }
}
?>
</div>